lib: fix up some nullability annotations
authorFelix Krull <f_krull@gmx.de>
Sat, 18 May 2019 11:58:34 +0000 (13:58 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 19 May 2019 14:50:08 +0000 (14:50 +0000)
Closes: #1861
Approved by: cgwalters

src/libostree/ostree-ref.c

index 35fd5821f5791c0dfb9efc4f9e2e144b92e2f2c5..ea372b843eb96a4fc24a3c9a370b3ef5c000bc21 100644 (file)
@@ -47,7 +47,7 @@ G_DEFINE_BOXED_TYPE (OstreeCollectionRef, ostree_collection_ref,
  * refspec; no remote name is included), which can be used for non-P2P
  * operations.
  *
- * Returns: (transfer full): a new #OstreeCollectionRef
+ * Returns: (transfer full) (nullable): a new #OstreeCollectionRef
  * Since: 2018.6
  */
 OstreeCollectionRef *
@@ -69,7 +69,7 @@ ostree_collection_ref_new (const gchar *collection_id,
 
 /**
  * ostree_collection_ref_dup:
- * @ref: an #OstreeCollectionRef
+ * @ref: (not nullable): an #OstreeCollectionRef
  *
  * Create a copy of the given @ref.
  *
@@ -104,7 +104,7 @@ ostree_collection_ref_free (OstreeCollectionRef *ref)
 
 /**
  * ostree_collection_ref_hash:
- * @ref: an #OstreeCollectionRef
+ * @ref: (not nullable): an #OstreeCollectionRef
  *
  * Hash the given @ref. This function is suitable for use with #GHashTable.
  * @ref must be non-%NULL.
@@ -125,8 +125,8 @@ ostree_collection_ref_hash (gconstpointer ref)
 
 /**
  * ostree_collection_ref_equal:
- * @ref1: an #OstreeCollectionRef
- * @ref2: another #OstreeCollectionRef
+ * @ref1: (not nullable): an #OstreeCollectionRef
+ * @ref2 : (not nullable): another #OstreeCollectionRef
  *
  * Compare @ref1 and @ref2 and return %TRUE if they have the same collection ID and
  * ref name, and %FALSE otherwise. Both @ref1 and @ref2 must be non-%NULL.